package com.yc2.service;

import com.yc2.entity.Num;
import com.yc2.springtest1.dao.jisuan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName JiShuanBiz
 * @since: 2023/7/25 17:15
 * @auth: kirito
 * @description:
 **/
@Service
public class JiShuanBiz {
    @Autowired
    public jisuan jiShuan;      //接口的引用.

    public void add(       int x, int y    ){
        System.out.println(    jiShuan.add(     new Num( x, y)    )  );
    }
}
